import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const catalogueFormRules = reactive(<FormRules>{
  name: [{ required: true, message: "目录名称为必填项", trigger: "blur" }],
});


/** 自定义表单规则校验 */
export const productFormRules = reactive(<FormRules>{
  name: [{ required: true, message: "产品名称为必填项", trigger: "blur" }],
  cateId: [{ required: true, message: "产品类型为必选项", trigger: ["blur", "change"] }],
});
